﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using AD.Pms.DataBase.Models.ZC_Member;
using AD.Pms.Service.DtoModel;

namespace AD.Pms.Service.Interfaces
{
    public interface IPushService
    {
        Task<bool> PushByContentAsync(IEnumerable<TblUserAccount> userAccounts,
            PushType pushType,
            string code, string content,
            string codeid,
            string ip);

        Task<bool> PushByUserAccountInfoAsync(IEnumerable<TblUserAccount> userAccounts, string content,
            string codeid,
            string ip, string code, PushType pushType);

        Task<PaginatedList<TblUserAccount>> GetUserAccountByPushUserTypeAsync(PushUserType pushtype,
            int pageindex = 1, int pagesize = 20);

        Task<Tuple<string, string>> GetCaptchaAsync();

        Task<bool> PushSMSByContentAsync(IEnumerable<string> phones, string code, string content,
            string codeid,
            string ip);

        Task<bool> PushSMSCodeAsync(string phone, string code, 
            string codeid,
            string ip);
    }
}